<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";

  page{
    --themeColor: #EB4450,

  }
	// 公共样式，每个页面都能访问到
	.goods-list{
  .goods-item{
    display: flex;
    border-bottom: 1px solid #f3f3f3;
    padding: 25rpx;
    .goods-image{
      width: 190rpx;
      height: 190rpx;
    
  }
  .goods-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20rpx;
    flex: 1;
    font-size: 24rpx;
    .goods-name{
      // 超出多行显示
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      text-overflow: ellipsis;
      
    }
    .goods-price{
      color:var(--themeColor);
      &::before{
        content: '¥';
        font-size: 80%;
        margin-right: 5rpx;
      }
    }

    
  }

  }
  
  
}
</style>
